of

open fun of(width: Float, height: Float, unit: PaperSize.Unit): PaperSize

Creates a new PaperSize setting.

Parameters

width

the paper size width

height

the paper size height

unit

the width and height measurement unit

Throws

when height is negative


open fun of(width: Float, height: Float, unit: PaperSize.Unit, name: String): PaperSize

Creates a new PaperSize setting.

Parameters

width

the paper size width

height

the paper size height

unit

the width and height measurement unit

name

the paper size name

Throws

when name is empty or blank